package com.shopReduce.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.shopReduce.bean.ReduceProgramme;
import com.shopReduce.bean.ShopReduce;
import com.shopReduce.feign.factory.ReduceProgrammFeignFactory;
import com.shopReduce.feign.factory.ShopReduceFeignFactory;

import shopBean.common.bean.RestResult;

@FeignClient(value="service-shopReduce",fallbackFactory=ShopReduceFeignFactory.class)
public interface ShopReduceFeign {
	@RequestMapping("shopReduce/insert.api")
	public RestResult insert( @RequestBody ShopReduce shopReduce);
	@RequestMapping("shopReduce/listManager.api")
	public RestResult list( @RequestBody ShopReduce shopReduce) ;
	
	@RequestMapping("shopReduce/updateById.api")
	public RestResult updateById( @RequestBody ShopReduce shopReduce) ;
	@RequestMapping("shopReduce/deleteById.api")
	public RestResult deleteById( @RequestParam(value="id") String id) ;
	
	@RequestMapping("shopReduce/get.api")
	public RestResult getApi(@RequestParam(value="id") String id);
}
